package com.zenghus.strategy;

public abstract class Login {

    public String username;
    public String password;

    /**
     * 验证用户名密码是否正确
     * @return
     */
    abstract boolean loginValidate();

    public static LoginType getLoginType(String loginType){
        for(LoginType lo:LoginType.values()){
            if(lo.name().equals(loginType)){
                return lo;
            }
        }
        return null;
    }
}
